﻿<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>

    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    @*<link href="~/Content/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet" />*@

    <!-- page specific plugin styles -->
    @*<link rel="stylesheet" href="/Content/ace/css/jquery-ui.min.css" />*@
    <link href="~/Content/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
    @*<link href="~/Content/TableExport-3.3.13/css/tableexport.min.css" rel="stylesheet" />*@
    <link href="~/Content/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
    <link href="~/Content/select2/css/select2.min.css" rel="stylesheet" />
    <link href="~/Content/toastr/css/toastr.min.css" rel="stylesheet" />

    <link href="~/Content/zTree/css/metroStyle/metroStyle.css" rel="stylesheet" />
    @*<link href="~/Content/zTree/css/demo.css" rel="stylesheet" />*@
    <link href="~/Content/customer/loader.css" rel="stylesheet" />
    <link href="~/Content/customerMain.css" rel="stylesheet" />
    @RenderSection("style", required: false)
    <style type="text/css">
        .btn, .dropdown-colorpicker a {
            cursor: pointer;
        }
        .breadcrumb, .breadcrumb > li > a, .btn {
            display: inline-block;
        }
    </style>
</head>
<body>
    <div id="loader-wrapper">
        <div id="loader"></div>
        <div class="loader-section section-left"></div>
        <div class="loader-section section-right"></div>
        <div class="load_title">正在加载站点<br></div>
    </div>
    <div class="panel-body" style="padding-bottom:0px;">
        @RenderBody()
        @*<div id="toolbar"></div>*@
        <div class="bs-bars pull-left">
            <div id="toolbar" class="btn-group">
                @Html.Action("MenuHeader", "Home", new { moduleId = ViewBag.ModuleId })
                <select style="margin-right: 10px;border-radius: 4px;" id="sel_exportoption">
                    <option value="basic">导出本页</option>
                    <option value="all">导出所有</option>
                    <option value="selected">导出选中项</option>
                </select>
            </div>
        </div>
        <table id="tb-body" data-bind="bootstrapTable :$root"></table>
    </div>

    <script type="text/javascript">
        if ('ontouchstart' in document.documentElement) document.write("<script src='/Content/ace/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
    </script>
    <!-- jquery -->
    <script src="~/Scripts/jquery-3.3.1.min.js"></script>
    <!-- jquery-validate -->
    <script src="~/Content/jquery-validate/jquery.validate.min.js"></script>
    <script src="~/Content/jquery-validate/jquery.validate.unobtrusive.min.js"></script>
    <script src="~/Content/jquery-validate/jquery.unobtrusive-ajax.min.js"></script>
    <!-- bootstrap -->
    <script src="~/Content/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
    @*<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>*@
    <!-- bootstrap-datetimepicker -->
    <script src="~/Content/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script src="~/Content/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <!-- bootstrap-table -->
    <script src="~/Content/bootstrap-table/bootstrap-table.js"></script>
    <script src="~/Content/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <!-- 导出 -->
    <script src="~/Content/bootstrap-table/extensions/bootstrap-table-export.js"></script>
    <script src="~/Content/tableExport.jquery.plugin/libs/FileSaver/FileSaver.min.js"></script>
    @*<!-- Excel 2007+ XML Format -->
        <script src="~/Content/tableExport.jquery.plugin/libs/js-xlsx/xlsx.core.min.js"></script>
        <!-- PDF -->
        <script src="~/Content/tableExport.jquery.plugin/libs/jsPDF/jspdf.min.js"></script>
        <script src="~/Content/tableExport.jquery.plugin/libs/jsPDF-AutoTable/jspdf.plugin.autotable.js"></script>
        <!-- PNG -->
        <script src="~/Content/tableExport.jquery.plugin/libs/html2canvas/html2canvas.min.js"></script>*@
    <script src="~/Content/tableExport.jquery.plugin/tableExport.min.js"></script>

    <!-- 弹框 -->
    <script src="~/Content/toastr/js/toastr.min.js"></script>
    @*<script src="https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/4.4.0/bootbox.min.js"></script>*@
    <script src="~/Content/bootbox/bootbox.min.js"></script>
    <!-- select2 -->
    <script src="~/Content/select2/js/select2.full.min.js"></script>
    <script src="~/Content/select2/js/i18n/zh-CN.js"></script>
    <!-- zTree -->
    <script src="~/Content/zTree/js/jquery.ztree.all.min.js"></script>
    <!-- knockout -->
    <script src="~/Content/knockout/knockout-3.4.2.js"></script>
    <script src="~/Content/knockout/extensions/knockout.mapping-latest.js"></script>
    <!-- ace scripts -->
    @*<script src="/Content/ace/js/ace-elements.min.js"></script>
        <script src="/Content/ace/js/ace.min.js"></script>*@

    <!-- 自定义 -->
    <script src="~/Content/customer/dataInit.js"></script>
    <script src="~/Content/customer/common.js"></script>
    <script src="~/Content/customer/frame-common.js"></script>
    <script src="~/Content/bootstrap-table/extensions/bootstraptable.formatter.js"></script>
    <script src="~/Content/customer/knockout.bootstraptable.js"></script>
    <script>
        function setData(data, id) {
            $('#modifyContent').html(data);
            $('#hidElementId').val(id);
        }
        $(function () {
            $('body').addClass('loaded');
            $('#loader-wrapper .load_title').remove();
            $.fn.datetimepicker.dates['zh-CN'] = {
                //具体配置可参见官网-I18N国际化
                days: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"],
                daysShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六", "周日"],
                daysMin: ["日", "一", "二", "三", "四", "五", "六", "日"],
                months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
                monthsShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
                today: "今天",
                suffix: [],
                meridiem: ["上午", "下午"]
            };
            $(".form_datetime").datetimepicker({
                format: "yyyy/mm/dd hh:ii",
                initialDate: "1970/01/01",
                autoclose: true,
                todayBtn: true,
                language: 'zh-CN'
            });
            //参数设置，若用默认值可以省略以下面代
            toastr.options = {
                "closeButton": true, //是否显示关闭按钮
                "debug": false, //是否使用debug模式
                "positionClass": "toast-top-center",//弹出窗的位置
                "showDuration": "300",//显示的动画时间
                "hideDuration": "1000",//消失的动画时间
                "timeOut": "5000", //展现时间
                "extendedTimeOut": "1000",//加长展示时间
                "showEasing": "swing",//显示时的动画缓冲方式
                "hideEasing": "linear",//消失时的动画缓冲方式
                "showMethod": "fadeIn",//显示时的动画方式
                "hideMethod": "fadeOut" //消失时的动画方式
            }
            //bootbox基本设置
            bootbox.setLocale('zh_CN');
        });
    </script>
    @RenderSection("scripts")
</body>
</html>
